package dome2;

import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        TextHeap textHeap = new TextHeap();
        int[] arr = new int[]{9,3,5,7,2,4,6,8};
        int[] ret = textHeap.smallestK(arr,4);
        System.out.println(Arrays.toString(ret));
    }
    public static void main1(String[] args) {
        TextHeap textHeap = new TextHeap();
        int[] arr = new int[]{ 27,15,19,18,28,34,65,49,25,37 };
        textHeap.intiElem(arr);
        textHeap.creatHeap();
        System.out.println(Arrays.toString(textHeap.elem));
        textHeap.poll();
        System.out.println(Arrays.toString(textHeap.elem));
    }
}
